//
//  Address.m
//  iFlower
//
//  Created by thohd on 8/27/10.
//  Copyright 2010 iNIL.me. All rights reserved.
//

#import "Address.h"

NSString* const kAddressDataTemplate = @"label=%@&address=%@&address2=%@&city=%@&state=%@&zipcode=%@country=%@&phone=%@&fax=%@&firstname=%@&lastname=%@";

@implementation Address

@synthesize addressId = addressId_;
@synthesize label = label_;
@synthesize firstName = firstName_;
@synthesize lastName = lastName_;
@synthesize addressLine1 = addressLine1_;
@synthesize addressLine2 = addressLine2_;
@synthesize phone = phone_;
@synthesize fax = fax_;
@synthesize city = city_;
@synthesize state = state_;
@synthesize country = country_;
@synthesize zipCode = zipCode_;

- (NSString*)addressData
{
	NSLog(@"%@",label_);
	NSLog(@"%@",addressLine1_);
	NSLog(@"%@",addressLine2_);
	NSLog(@"%@",city_);
	NSLog(@"%@",state_);
	NSLog(@"%@",zipCode_);
	NSLog(@"%@",country_);
	NSLog(@"%@",phone_);
	NSLog(@"%@",fax_);
	NSLog(@"%@",firstName_);
	NSLog(@"%@",lastName_);
	
	return [NSString stringWithFormat:kAddressDataTemplate, label_, addressLine1_, addressLine2_,city_, state_, zipCode_,country_,phone_, fax_,firstName_,lastName_];
}

@end
